import { request } from "@/utils/service"
import * as System from "./types/system"
/** 查 */
export function getAnyConstantDataApi() {
  return request<System.GetAnyConstantResponseData>({
    url: "anyConstant/getList",
    method: "get"
  })
}

/** 改 */
export function updateAnyConstantDataApi(data: System.IUpdateAnyConstantRequestData) {
  return request<null>({
    url: "anyConstant/updateOne",
    method: "put",
    data
  })
}

export function getAuthorityValueDataApi(id: number) {
  return request<System.GetAuthorityValueResponseData>({
    url: `anyConstant/getAuthorityValue?id=${id}`,
    method: "get"
  })
}
